<script>
export default {
  name: "WorkOrederWBXView",
  data() {
    return {
      list: [],
      id1:0,
    }
  },
  methods: {
    // 返回
    index(id1) {
      this.$router.push({path: '/work_order_xq2', query: {id: id1}})
    }
  },
  created() {
    this.id = this.$route.query.id;
    this.axios.get(`http://localhost:9999/api-work-order-service/work-order/findById?id=`+this.id).then(res => {
      this.list = res.data.data;
      console.log(res);
    })
    this.id1 = this.id;
    console.log(this.id1);
  }
}
</script>

<template>
<div>
  <h3>维保项</h3>

  <div>
    <p>空调主机  除尘养护</p>
    <div>
      <van-radio-group v-model="list.workOrderHost" direction="horizontal" @change="changeHost">
        <van-radio :name="1">正常</van-radio>
        <van-radio :name="2">异常</van-radio>
      </van-radio-group>
    </div>
    <p>空调主机  冷凝管疏通</p>
    <div>
      <van-radio-group v-model="list.workOrderHostTwo" direction="horizontal" @change="changeHostTwo">
        <van-radio :name="1">正常</van-radio>
        <van-radio :name="2">异常</van-radio>
      </van-radio-group>
    </div>
    <p>空调通风管  通风管疏通</p>
    <div>
      <van-radio-group v-model="list.workOrderTube" direction="horizontal">
        <van-radio :name="1">正常</van-radio>
        <van-radio :name="2">异常</van-radio>
      </van-radio-group>
    </div>
  </div>
  <el-button @click="index(id1)">返回</el-button>
</div>

</template>

<style scoped>

</style>